Previous Next Contents Generated Index Doc Set



CHAPTER 2 : Integrating SNiFF+J with Visaj


Introduction

The Visaj integration with SNiFF+ allows you to combine Visaj's graphical GUI design features with SNiFF+'s source code engineering functionality. The symbol information and inheritance relationships of Visaj generated source code can therefore be directly browsed, version controlled, and edited in SNiFF+.


Installation


Note - The Visaj Resource Bundle Editor, Image Editor and Project Window are currently not part of the SNiFF+ Visaj integration.

Note - Once Visaj is selected as part of the SNiFF+ installation it is automatically installed on your computer, you need not install Visaj separately.

Requirements


Note - You can download the JDK from http://java.sun.com
For JDK 1.2 users

We suggest that you do the following to improve overall performance.

In the SNiFF_DIR/bin/runvisaj.sh script, add the following option:

after javaw

Selecting Visaj as part of your SNiFF+ Installation


Adding Visaj projects to a SNiFF+ project

Adding a new Visaj project

In the SNiFF+ Project Editor:

  1. Make sure that the relevant SNiFF+ project is highlighted in the Project Tree.
  2. From the menu, choose either
Project -\> Add Visaj Project to <Projectname>, or choose

Tools -\> Visaj

  3. In the dialog that appears, enter a name for the new project and press Ok.
  4. Choose Project -\> Save <Projectname> to save the modified project.

Adding an existing Visaj project

First, copy your Visaj project to your SNiFF+ project directory. Make sure that the Visaj project file type (.vcl) and the Java file type (.java) are part of the SNiFF+ project. If they aren't, add them to the project. For details, please refer to the SNiFF+ User's Guide.

Then, in the SNiFF+ Project Editor:

  1. Make sure that the relevant SNiFF+ project is selected in the Project Tree.
  2. From the menu, choose Project -\> Add/Remove Files to/from <Projectname>.
  3. In the Add/Remove Files dialog that appears, select the Visaj project file, press the Add button, then press Ok.
  4. Choose Project -\> Save <Projectname> to save the modified project.


Working with SNiFF+ in Visaj

Loading the Visaj project into the Visaj Class Editor

In any SNiFF+ tool, choose Tools -\> Visaj

OR

In the SNiFF+ Project Editor, double-click on the Visaj project file

Java code generation

Java code is automatically generated and stored in your SNiFF+ project directory when you

Accessing SNiFF+ commands

A custom menu called SNiFF+ is available in Visaj's Class Editor. The menu allows you to directly

For a description of the menu commands in the SNiFF+ menu, please see "The SNiFF+ Menu" on page 203.


Tools not supported in the SNiFF+ Visaj integration

In the SNiFF+ Visaj integration, menu entries for the above tools don't appear in the Class Editor.

The rest of this manual is based on the original Visaj documentation therefore please ignore documentation related to the tools which aren't supported in this integration, i.e., those mentioned above.


Note - In the SNiFF+ Visaj integration, java code is automatically generated and stored in your SNiFF+ project directory, for details please see "Java code generation" on page 11.



Previous Next Contents Generated Index Doc Set

Copyright © 1998, 1999 Pacific Imperial Inc., TakeFive Software Inc. All Rights Reserved.